
<#if result??>
<div class="modal fade" id="myModal2" style="padding-top: 150px" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    商户修改
                </h4>
            </div>
            <div class="modal-body">
                <form id="form_addBusInfo" class="form-horizontal" role="form">
                    <div class="form-group hidden">
                        <label for="firstname" class="col-sm-2 control-label">ID</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="userId2" name="id" value="${result.id?default("")}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">商户名称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="busName2" name="busName" placeholder="商户名称" value="${result.busName?default("未设置")}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-2 control-label">商户地址</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="busAddress2" value="${result.busAddress?default("")}" name="busAddress" placeholder="商户地址">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="lastname" class="col-sm-2 control-label">登录名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="busLoginname2" value="${result.busLoginname?default("")}" name="busLoginname" placeholder="商户登录名">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-2 control-label">登录密码</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="busLoginpassword2" value="${result.busLoginpassword?default("")}" name="busLoginpassword" placeholder="商户登录密码">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-2 control-label">发布进度</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="publishPlan2" value="${result.publishPlan?default("")}" name="publishPlan" placeholder="发布进度">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="lastname" class="col-sm-2 control-label">发布版本</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="version2" value="${result.version?default("")}" name="version" placeholder="发布版本">
                        </div>
                    </div>
                </form>

            </div>

            <div class="modal-footer">

                <button type="button" id="modalCancel2" onclick="function close() {
                            $('#myModal2').modal('hide');
                        }" class="btn btn-default" data-dismiss="modal">取消
                </button>
                <button type="button" id="updateBusInfo" onclick="updateBusInfo()" class="btn btn-primary">
                    更新
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
</#if>